% 目标函数
clear all
f = @(x) x(1) ^ 2 + x(2)^2 + 8

% 约束条件
% A = [1, -2]
% b = 1
% Aeq = [2,1]
% beq = 1

x0=[0, 1]

x = fmincon(f, x0, [], [], [], [],[],[], 'mycon')
